package ch4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Race100 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入选手的成绩和性别：");
        double s = in.nextDouble();
        String sex = in.next();
        //==
        if (s <= 10) {
            if (sex.equals("男")) {
                System.out.println("进入男子组参加决赛");
            } else if (sex.equals("女")) {
                System.out.println("进入女子组参加决赛");
            } else {
                System.out.println("性别输入错误！");
            }
        } else {
            System.out.println("您被淘汰了");
        }
    }
}
